import Taro, { Component } from "@tarojs/taro";
import { View, Text } from "@tarojs/components";
import { AtNavBar } from "taro-ui";

export default class SettingPage extends Component {
  config = {
    navigationStyle: "custom"
  };

  componentWillMount() {}

  componentDidMount() {}

  componentWillUnmount() {}

  componentDidShow() {}

  componentDidHide() {}
  handleClick = () => {
    console.log("返回");
    Taro.navigateBack({ delta: 1 });
  };
  render() {
    return (
      <View className="index">
        <View style={{ paddingTop: "20px" }}>
          {" "}
          <AtNavBar
            onClickRgIconSt={this.handleClick}
            onClickRgIconNd={this.handleClick}
            onClickLeftIcon={this.handleClick}
            color="#6190E8"
            leftIconType
            leftText="返回"
          >
            <View style={{ fontSize: "16px" }}>功能设置</View>
          </AtNavBar>
        </View>

        <Text>设置</Text>
      </View>
    );
  }
}
